﻿<navigation:Page xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="GranitePackageSystem.Views.QA.QualityAssuranceView" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
           xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit"
           xmlns:customControl="clr-namespace:GranitePackageSystem.Controls"
           d:DesignWidth="1024" d:DesignHeight="2048" MaxWidth="1024"
           Title="QualityAssurance Page">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
            <RowDefinition Height="333*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="250" />
            <ColumnDefinition Width="550*" />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Margin="10" Name="panelTitle">
            <TextBlock Text="Quality Assurance View" FontSize="18" FontWeight="Bold" HorizontalAlignment="Center" />
        </StackPanel>
        <StackPanel Grid.Row="1" Name="panelLandingNav" Margin="10,10,10,0" Background="#FF484848" Height="Auto" VerticalAlignment="Top" Width="200" HorizontalAlignment="Center">
            <StackPanel>
                <HyperlinkButton x:Name="linkHome" NavigateUri="/Home" TargetName="ContentFrame" Content="Dashboard" Style="{StaticResource LinkStyle}" Background="{x:Null}" AllowDrop="True" HorizontalContentAlignment="Left" Margin="16,0,0,0"/>
                <controlsToolkit:Expander ExpandDirection="Down" IsExpanded="True">
                    <controlsToolkit:Expander.Header>
                        <TextBlock Text="Current Request" FontSize="12" Foreground="White" TextAlignment="Left" />
                    </controlsToolkit:Expander.Header>
                    <controlsToolkit:Expander.Content>
                        <StackPanel HorizontalAlignment="Right" Margin="30,0,0,0" Width="AUTO">
                            <HyperlinkButton x:Name="linkQualityAssuranceView" NavigateUri="/QA/QualityAssuranceView" TargetName="ContentFrame" Content="• Quality Assurance" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Foreground="#FF42A1F5" />
                        </StackPanel>
                    </controlsToolkit:Expander.Content>
                </controlsToolkit:Expander>
            </StackPanel>
        </StackPanel>
        <controlsToolkit:BusyIndicator Name="busyIndicatorMain" Grid.Column="1" Grid.Row="1">
            <StackPanel Name="panelContent">
                <controlsToolkit:BusyIndicator Name="busyIndicatorPackageInformation" Grid.Column="1" Grid.Row="1">
                    <StackPanel Name="panelPackageInfo" Orientation="Horizontal">
                        <StackPanel Width="150">
                            <TextBlock Text="Package Name" Margin="5" Height="23" />
                            <TextBlock Text="Package Version" Margin="5" Height="23"  />
                            <TextBlock Text="Source Files Location" Margin="5" Height="23" />
                            <TextBlock Text="OS Compatibility" Margin="5" Height="23" />
                        </StackPanel>
                        <StackPanel>
                            <TextBox Name="boxPackageName" Margin="5" Height="23" Width="300" />
                            <TextBox Name="boxPackageVersion" Margin="5" Height="23" Width="300" />
                            <TextBox Name="boxSourceFilesLocation" Margin="5" Height="23" Width="300" />
                            <StackPanel Orientation="Horizontal">
                                <StackPanel Orientation="Horizontal" Margin="0,0,105,0">
                                    <TextBlock Name="txtWin7Compatible" Text="Windows 7" Margin="5" />
                                    <customControl:Spinner Visibility="Visible" x:Name="spinnerWin7" Height="23"  />
                                    <Image Name="imgWin7Compat" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" Visibility="Collapsed" VerticalAlignment="Center" Source="/GranitePackageSystem;component/Images/green-checkmark.jpg" Height="23" />
                                    <Image Name="imgWin7NonCompat" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" Visibility="Collapsed" VerticalAlignment="Center" Source="/GranitePackageSystem;component/Images/Red-X.jpg" Height="23" />
                                </StackPanel>
                                <TextBlock Name="txtWinXPCompatible" Text="Windows XP" Margin="5" />
                                <customControl:Spinner Visibility="Visible" x:Name="spinnerWinXP" Height="23" />
                                <Image Name="imgWinXPCompat" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" Visibility="Collapsed" VerticalAlignment="Center" Source="/GranitePackageSystem;component/Images/green-checkmark.jpg" Height="23" />
                                <Image Name="imgWinXPNonCompat" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" Visibility="Collapsed" VerticalAlignment="Center" Source="/GranitePackageSystem;component/Images/Red-X.jpg" Height="23" />
                            </StackPanel>
                        </StackPanel>
                        <StackPanel Width="310">
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                                <Button Name="btnTestWin7" Content="Test Windows 7" Width="130" Margin="5" Height="23" Click="btnTestWin7_Click" />
                                <Button Name="btnTestWinXP" Content="Test Windows XP" Width="130" Margin="5" Height="23" Click="btnTestWinXP_Click" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                                <Button Name="btnWin7Success" Content="Windows 7 Success" Width="130" Margin="5" Height="23" IsEnabled="False" Click="btnWin7Success_Click" />
                                <Button Name="btnWinXPSuccess" Content="Windows XP Success" Width="130" Margin="5" Height="23" IsEnabled="False" Click="btnWinXPSuccess_Click" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                                <Button Name="btnWin7Failure" Content="Windows 7 Failure" Width="130" Margin="5" Height="23" IsEnabled="False" Click="btnWin7Failure_Click" />
                                <Button Name="btnWinXPFailure" Content="Windows XP Failure" Width="130" Margin="5" Height="23" IsEnabled="False" Click="btnWinXPFailure_Click" />
                            </StackPanel>
                            <Button Name="btnRefreshSourceFiles" Content="Refresh Source Files" Width="130" HorizontalAlignment="Center" Height="23" Margin="5" Click="btnRefreshSourceFiles_Click" />
                        </StackPanel>
                    </StackPanel>
                </controlsToolkit:BusyIndicator>
                <StackPanel Orientation="Horizontal" Name="panelVMName" Visibility="Collapsed">
                    <TextBlock Text="Virtual Machine:  " Margin="5" FontWeight="Bold"/>
                    <TextBlock Name="txtVMName" />
                </StackPanel>
                <TextBlock Text="Work Log" Margin="5,20,0,0" FontWeight="Bold" />
                <sdk:DataGrid Name="gridWorkLog" Height="120" HorizontalAlignment="Left" Margin="5" AutoGenerateColumns="False" MouseLeftButtonUp="gridWorkLog_MouseLeftButtonUp">
                    <sdk:DataGrid.Columns>
                        <sdk:DataGridTextColumn Binding="{Binding UserName}" Header="User Name" IsReadOnly="True" Width="1*" />
                        <sdk:DataGridTextColumn Binding="{Binding NoteDate}" Header="Date" IsReadOnly="True" Width="1*" />
                        <sdk:DataGridTextColumn Binding="{Binding displayLine}" Header="Note" IsReadOnly="True" Width="2*" />
                    </sdk:DataGrid.Columns>
                </sdk:DataGrid>
                <Button Name="btnAddWorklogEntry" Content="Add Worklog Entry" HorizontalAlignment="Right" Margin="5" Width="130" Click="btnAddWorklogEntry_Click" />
                <Button Name="btnFinishedQA" Content="QA Testing Completed" HorizontalAlignment="Right" Margin="5" Width="130" Click="btnFinishedQA_Click" />
            </StackPanel>
        </controlsToolkit:BusyIndicator>
    </Grid>
</navigation:Page>
